let today = new Date();
let year = today.getFullYear();
let day = today.getDate();
let month = today.getMonth()+1;
document.getElementById("today").innerHTML = month + "月" + day + "日"
document.getElementsByClassName("left-triangle")[0].style.borderRightWidth = document.body.clientWidth + "px"

let teacher_has_logined = document.getElementById("application-scope").innerHTML
if(teacher_has_logined == "1"){
    document.getElementById("login-first").style.display = "none"
    document.getElementById("logined").style.display = "block"

}else{
    document.getElementById("logined").style.display = "none"
    document.getElementById("login-first").style.display = "block"
}

let signin_has_released = document.getElementById("application-scope2").innerHTML
if(signin_has_released == "1"){
    document.getElementsByClassName("has-released")[0].style.display = "block"
    document.getElementsByClassName("not-released")[0].style.display = "none"
}else{
    document.getElementsByClassName("has-released")[0].style.display = "none"
    document.getElementsByClassName("not-released")[0].style.display = "block"
}
